package com.example.stock.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.example.stock.util.DateUtil;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class DailyLog {

    @ExcelProperty("date")
    private String date;

    public void setDate(String date) {
        this.date = DateUtil.reFormatDate(date);
    }

    @ExcelProperty("星期")
    private String week;

    @ExcelProperty("stock")
    private String stock;

    @ExcelProperty("tag")
    private String tag;

    /**
     * 是否有图片
     */
    @ExcelProperty("pic")
    private int pic;

    @ExcelProperty("描述")
    private String introduce;

    @ExcelProperty("extra")
    private String extra;

    @ExcelProperty("OP")
    private String op;

    @ExcelProperty("type")
    private String type;

    @ExcelProperty("industry")
    private String industry;
}